import request from '@/utils/request'

// 查询其他物资列表
export function listOtherMaterial(query) {
  return request({
    url: '/storage/otherMaterial/list',
    method: 'get',
    params: query
  })
}

// 查询其他物资详细
export function getOtherMaterial(otherMaterialId) {
  return request({
    url: '/storage/otherMaterial/' + otherMaterialId,
    method: 'get'
  })
}

// 新增其他物资
export function addOtherMaterial(data) {
  return request({
    url: '/storage/otherMaterial',
    method: 'post',
    data: data
  })
}

// 修改其他物资
export function updateOtherMaterial(data) {
  return request({
    url: '/storage/otherMaterial',
    method: 'put',
    data: data
  })
}

// 删除其他物资
export function delOtherMaterial(otherMaterialId) {
  return request({
    url: '/storage/otherMaterial/' + otherMaterialId,
    method: 'delete'
  })
}
